<%@ page import="org.apache.taglibs.standard.examples.beans.*, java.util.*"%>
<%
        Customers.create("Richard", "Maurice", "5/15/35",
        "123 Chemin Royal", "Appt. #301",
        "Montreal", "QC", "H3J 9R9", "Canada");
        Customers.create("Mikita", "Stan", "12/25/47",
        "45 Fisher Blvd", "Suite 203",
        "Chicago", "IL", "65982", "USA", "(320)876-9784", null);
        Customers.create("Gilbert", "Rod", "3/11/51",
        "123 Main Street", "",
        "New-York City", "NY", "19432", "USA");
        Customers.create("Howe", "Gordie", "7/25/46",
        "7654 Wings Street", "",
        "Detroit", "MG", "07685", "USA", "(465)675-0761", "(465)879-9802");
        Customers.create("Sawchuk", "Terrie", "11/05/46",
        "12 Maple Leafs Avenue", "",
        "Toronto", "ON", "M5C 1Z1", "Canada");
        pageContext.getServletContext().setAttribute("customers", Customers.findAll());
        
        
    	int[] intArray = new int[] {10, 20, 30, 40, 50};
    	pageContext.getServletContext().setAttribute("intArray", intArray);

		String[] stringArray = new String[] {
		    "A first string",
		    "La deuxieme string",
		    "Ella troisiemo stringo",
		};
		pageContext.getServletContext().setAttribute("stringArray", stringArray);

        Hashtable stringMap = new Hashtable();
        pageContext.getServletContext().setAttribute("stringMap", stringMap);
        stringMap.put("one", "uno");
        stringMap.put("two", "dos");
        stringMap.put("three", "tres");
        stringMap.put("four", "cuatro");
        stringMap.put("five", "cinco");
        stringMap.put("six", "seis");
        stringMap.put("seven", "siete");
        stringMap.put("eight", "ocho");
        stringMap.put("nine", "nueve");
        stringMap.put("ten", "diez");

        Hashtable numberMap = new Hashtable();
        pageContext.getServletContext().setAttribute("numberMap", numberMap);
		numberMap.put(new Integer(1), "uno");
		numberMap.put(new Integer(2), "dos");
		numberMap.put(new Integer(3), "tres");
		numberMap.put(new Integer(4), "cuatro");
		numberMap.put(new Integer(5), "cinco");
		numberMap.put(new Integer(6), "seis");
		numberMap.put(new Integer(7), "siete");
		numberMap.put(new Integer(8), "ocho");
		numberMap.put(new Integer(9), "nueve");
		numberMap.put(new Integer(10), "diez");

		Enumeration enum_ = numberMap.keys();
        pageContext.getServletContext().setAttribute("enumeration", enum_);

		Object[] serverInfoArgs =
		    new Object[] {
				 pageContext.getServletContext().getServerInfo(),
			System.getProperty("java.version")
		    };
		pageContext.getServletContext().setAttribute("serverInfoArgs", serverInfoArgs);
%>